package com.ruoyi.bussiness.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 投诉对象 mgt_complaint
 * 
 * @author ruoyi
 * @date 2023-11-12
 */
public class MgtComplaint extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 投诉人 */
    @Excel(name = "投诉人")
    private String fromPerson;

    /** 投诉内容 */
    @Excel(name = "投诉内容")
    private String content;

    /** 处理状态 */
    @Excel(name = "处理状态")
    private Long state;

    /** 责任类型 (有责/无责) */
    @Excel(name = "责任类型 (有责/无责)")
    private Integer duty;

    /** 创建时间 */
    private Date createdAt;

    /** 创建人 */
    private String createdBy;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFromPerson(String fromPerson) 
    {
        this.fromPerson = fromPerson;
    }

    public String getFromPerson() 
    {
        return fromPerson;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setDuty(Integer duty) 
    {
        this.duty = duty;
    }

    public Integer getDuty() 
    {
        return duty;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fromPerson", getFromPerson())
            .append("content", getContent())
            .append("state", getState())
            .append("duty", getDuty())
            .append("createdAt", getCreatedAt())
            .append("createdBy", getCreatedBy())
            .toString();
    }
}
